<%@page import="model.Utilisateur"%>
<%@page import="model.Billet"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<% if((Utilisateur)session.getAttribute("user_connected") != null ){ %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>Achat et vente de billets</title>
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
	<!--[if lte IE 6]><link rel="stylesheet" href="css/ie6.css" type="text/css" media="all" /><![endif]-->
	
	<meta name="keywwords" content="Shop Around - Great free html template for on-line shop. Use it as a start point for your on line business. The template can be easily implemented in many open source E-commerce platforms" />
	<meta name="description" content="Shop Around - Great free html template for on-line shop. Use it as a start point for your on line business. The template can be easily implemented in many open source E-commerce platforms" />
	
	<!-- JS -->
	<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>	
	<script src="js/jquery.jcarousel.pack.js" type="text/javascript"></script>	
	<script src="js/jquery-func.js" type="text/javascript"></script>	
	<!-- End JS -->
	
</head>
<body>
	
<!-- Shell -->	
<div class="shell">
	
	<!-- Header -->	
	<%@ include file="header.jsp" %>
	
	<!-- Main -->
	<div id="main">		
		<!-- Principal -->
		<div id="principal">
			<br />
			<h1>Adresse livraison / choix paiement</h1><br/>
		
			<div class="billet-info">
	    		<div class="billet-desc" style="padding-left: 40px;">
	    		
	    			<%
	    				int idbillet = Integer.parseInt((String)request.getParameter("idbillet").trim());
	    				double prix = Double.parseDouble(request.getParameter("prix"));
	    				Billet billet = new Billet();
	    				billet.setPrixVente(prix);
	    				billet.setIdBillet(idbillet);
	    				
	    				session.setAttribute("billet", billet);
	    			%>
	    		
	    		
	    			<form action="mode_paiement.jsp" method="post">
	    				    				
						<table style="" align="center" cellspacing="20">
						
							<tr>
								<td><span style="font: bold; font-size:20px; line-height:20px; text-transform: uppercase; color:green;">
									Prix : <%= request.getParameter("prix") %>&#x20AC 
									<input type="hidden" name="prix" class="field" value="<%= request.getParameter("prix") %>"></input> 
								</td>
							</tr>
													
							<tr>
								<td><label>Num rue</label></td>
								<td><input type="text" class="field" name="numrue" size="10px" /></td>
							</tr>
							
							<tr>
								<td><label>Nom rue</label></td>
								<td><input type="text" class="field" name="nomrue" size="30px" /></td>
							</tr>
							
							<tr>
								<td><label>Code Postal</label></td>
								<td><input type="text" class="field" name="cp" size="10px" /></td>
							</tr>
							
							<tr>
								<td><label>Ville</label></td>
								<td><input type="text" class="field" name="ville" size="20px" /></td>
							</tr>						
													
							<tr>
								<td><label>Moyen de paiement</label></td>
								<td>
									<select class="field" name="paiement" style="width: 200px">
										<option value="0">     --- Choisir ---    </option>
										<option value="1">Carte bancaire</option>
										<option value="2">Paypal</option>
									</select>
								</td>
							</tr>
							
							<br/>
							
							<tr>								
								<td><input type="reset" class="search-submit" value="annuler" style="width: 100px"/></td>
								<td><input type="submit" class="search-submit" value="paiement" style="width: 100px"/></td>
							</tr>
							
							<tr>								
								<td colspan="2"><a href=#>Retour</a></td>
							</tr>					
						
						</table>
												
					</form>
				</div>
			</div>	
			
		</div>
		<!-- End Content -->
		
		<!-- Sidebar -->
		<div id="sidebar">
			
			<!-- Search -->
			<%@ include file="search.jsp" %>
			
			<!-- Menus -->
			<%@ include file="menus_user.jsp" %>
			
		</div>
		<!-- End Sidebar -->
		
		<div class="cl">&nbsp;</div>
	</div>
	<!-- End Main -->
	
	<!-- Side Full -->
	<%@ include file="foot_slide.jsp" %>
	
	<!-- Footer -->
	<%@ include file="footer.jsp" %>

</div>	
<!-- End Shell -->
	
</body>
</html>
<%} else { response.sendRedirect("index.jsp"); } %>